<%# locals: (object:, type:, text: nil) %>

<div class="md:flex md:items-center md:justify-between pb-2 lg:pb-4">
  <div class="min-w-0 flex-1">
    <h3 class="text-2xl font-bold leading-7 text-gray-900 sm:truncate sm:text-2xl sm:tracking-tight">
      Rename
    </h3>
  </div>
</div>

<% form(action: "#{path(object)}/rename", method: :post) do %>
  <div class="overflow-hidden rounded-lg shadow ring-1 ring-black ring-opacity-5 bg-white divide-y divide-gray-200">
    <div class="px-4 py-5 sm:p-6">
      <%== part("components/rename_object_input", object:, type:, text:) %>
    </div>
  </div>
<% end %>
